package cn.school.thoughtworks.section1;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

public class PracticeC {
    List<String> collectSameElements(List<String> collection1, Map<String,List<String>> collection2) {
        List<String> collection3 = new ArrayList<>();
        for (String m : collection1)
        {
            for (String n : collection2.get("value"))
            {
                if (m == n)
                {
                    collection3.add(m);
                }
            }
        }


        //实现练习要求，并改写该行代码。
        return collection3;
    }
}